package com.wuwei.aliocr.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wuwei.aliocr.domain.Model;
import com.wuwei.aliocr.mapper.ModelMapper;
import com.wuwei.aliocr.service.ModelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ModelServiceImpl implements ModelService {


    @Resource
    private ModelMapper modelMapper;



    /**
     * 获取所有模块列表的方法
     * @return
     */
    @Override
    public List<Model> getModelList() {
        List<Model> list = modelMapper.selectList(new QueryWrapper<>());
        return list;

    }

}
